##
## $Id: CMakeLists.txt 22 2009-10-28 02:03:29Z rigdern $
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <http://www.gnu.org/licenses/>.
##

include_directories(
  ${Boost_INCLUDE_DIRS}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}/common
  ${CMAKE_CURRENT_SOURCE_DIR}/algorithms
)

## Grab libraries from the subdirectories
link_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}/common
  ${CMAKE_CURRENT_SOURCE_DIR}/algorithms
)

## Process the subdirectories
add_subdirectory(common)
add_subdirectory(algorithms)

set(kanonymity_SRCS
  main.cpp
)

set(kanonymity_BIN kanonymity_analyzer)

if (WIN32)
  add_executable(${kanonymity_BIN} WIN32 ${kanonymity_SRCS})
else (WIN32)
  add_executable(${kanonymity_BIN} ${kanonymity_SRCS})
endif(WIN32)

target_link_libraries(${kanonymity_BIN}
  ${Boost_LIBRARIES}
  attributes
  samarati
  data
  sqlite
  utilities
)
